<%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>   
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Users Status</title>
</head>
<body>
	<script type="text/javascript">
		setInterval('window.location.reload()', 10000);
	</script>
	<h2>Users Status</h2>
	<h4>${time}</h4>
	<table border="1">
		<tr>
			<th style="width: 30px;" align="center">#</th>
			<th style="width: 150px;" align="left">User Name</th>
			<th style="width: 100px;" align="center">Status</th>
		</tr>
		<c:forEach var="s" items="${users}">
			<tr>
				<td align="center">${s.id}</td>
				<td align="left">${s.name}</td>
				<td align="center">${s.status}</td>
			</tr>
		</c:forEach>
	</table>
</body>
</html>